package com.tjetc.domian;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Apartment implements Serializable {
    @Serial
    private static final long serialVersionUID = -2531792825544276778L;
    private Integer apartmentid;

    private String buildingnumber;

    private String unitnumber;

    private String roomnumber;

    private BigDecimal area;

    public Apartment(String buildingnumber, String unitnumber, String roomnumber, BigDecimal area) {
        this.buildingnumber = buildingnumber;
        this.unitnumber = unitnumber;
        this.roomnumber = roomnumber;
        this.area = area;
    }
}